$(function(){
var w = window.screen.width;
if(w<1280){$(".fl_sider").css('left','-106px');$(".fl_sider h2").toggle(function() {$(".fl_sider").animate({ left: '3px' }, "slow"); $(this).addClass("on");},function() {$(".fl_sider").animate({ left: '-106px' }, "slow"); $(this).removeClass("on");});}else{$(".fl_sider h2").toggle(function() {$(".fl_sider").animate({ right: '-106px' }, "slow"); $(this).addClass("on");},function() {$(".fl_sider").animate({ right: '3px' }, "slow"); $(this).removeClass("on");});}

$('.searchfont_sj2  span').hover(  function(){$(this).addClass('dis_sj');},  function(){$(this).removeClass('dis_sj');});
$('.searchfont_sj  span').hover(  function(){$(this).addClass('dis_sj');},  function(){$(this).removeClass('dis_sj');});
$('.gz3  span').hover(  function(){$(this).addClass('dis_wx');},  function(){$(this).removeClass('dis_wx');});
$('.list_tp2  li').hover(  function(){$(this).addClass('on');},  function(){$(this).removeClass('on');});
$('.project_mid  dl').hover(  function(){$(this).addClass('on');},  function(){$(this).removeClass('on');});

var imgtop = $('#gotopage_index');
imgtop.click(function(){
	animate();
});
$(window).scroll(function(){
	var top = $(document).scrollTop();
	if(top>=100) imgtop.show('slow');
	if(top<100) imgtop.hide('slow');
});
//这里我是上市效果
var shangshiobj	     = $('#shangshi_flag');
var shangshiimg		 = $('#shangshi_img');
var shangshi_img2	 = $('#shangshi_img2');
var shangshibox		 = $('#shangshi_banner_box');
var shangshiShowFlag = true;
var shangshiImgName  = 'play';
shangshiobj.mouseover(function(){
	shangshiImgName = shangshiShowFlag?'play':'close';
	$(this).attr('src','/images2013_05_14/shangshi_banner_'+shangshiImgName+'1.png');
}).mouseout(function(){
	shangshiImgName = shangshiShowFlag?'play':'close';
	$(this).attr('src','/images2013_05_14/shangshi_banner_'+shangshiImgName+'2.png');
}).click(function(){
	if(shangshiShowFlag){
	    shangshiShowFlag = false;
		shangshiimg.hide().stop().animate({
			opacity:0
		},600);
		shangshi_img2.show().stop().animate({
			opacity:1
		},600,function(){
				shangshibox.animate({ 
				height: "280"
			},1000);
		});	
		$(this).attr('src','/images2013_05_14/shangshi_banner_close1.png');
	}else{
		shangshiShowFlag = true;
		shangshibox.animate({ 
			height: "55"
		},600,function(){
			shangshi_img2.hide().stop().animate({
				opacity:0
			},600);
			shangshiimg.show().stop().animate({
				opacity:1
			},600);
		});
		$(this).attr('src','/images2013_05_14/shangshi_banner_play1.png');
	}
});

$('.list_tp2  li img').hover(  function(){$(this).stop().animate({top:-53},500);},function(){$(this).stop().animate({top:0},500);});

setTimeout(function(){
	shangshibox.animate({ 
		height: 55
	},600,function(){
		shangshi_img2.hide().stop().animate({
			opacity:0
		},600);
		shangshiimg.show().stop().animate({
			opacity:1
		},600);
		shangshiobj.show().attr('src','/images2013_05_14/shangshi_banner_play1.png');
	});
},3000);

});/*load end*/
$(function(){
	var w = window.screen.width;
	if(w<1280){
		$(".kf_sider").css('right','-118px');
		$(".kf_sider h2").toggle(
		function() {
			$(".kf_sider").animate({ right: '-118px' }, "slow"); $(this).addClass("on");
		},
		function() {
			$(".kf_sider").animate({ right: '0' }, "slow"); $(this).removeClass("on");
		}
		);
	}else{
		$(".kf_sider h2").toggle(
			function() {
				$(".kf_sider").animate({ right: '-118px' }, "slow"); $(this).addClass("on");
			},
			function() {
				$(".kf_sider").animate({ right: '0' }, "slow"); $(this).removeClass("on");
			}
		);
	}
});



